package com.ruoyi.bi.mapper.bireport;

import com.ruoyi.bi.domain.bireport.Area;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AreaMapper {

	List<Area> listCityByProvCode(@Param("code") String code);

	List<Area> listTownByCityCode(@Param("code") String code);

	/**
	 * 查询省得编码，名称
	 * @param name
	 * @return
	 */
	Area getProvByName(@Param("name") String name);

	Area getCityByName(@Param("name") String name);

	/**
	 * 查询所有省市
	 * @param dbName
	 * @return
	 */
	List<Map<String, Object>> listProvAndCitys(@Param("dbName") String dbName);

	Area getProvByCityCode(@Param("code") String code);

}
